@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1766cc;
    --hover-color: #0f52a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Readex Pro', sans-serif;
    direction: rtl;
    color: #333;
    line-height: 1.6;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for fade-in sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Gantt Chart Styling */
#gantt-chart {
    overflow-x: auto;
}

.apexcharts-toolbar {
    z-index: 10 !important;
}

.apexcharts-menu {
    direction: ltr;
}

/* Responsive tables */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

/* Transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Footer link hover effect */
footer a:hover {
    text-decoration: underline;
}

/* Ensure proper alignment for RTL layout */
.list-disc, .list-decimal {
    padding-right: 1.5rem;
    padding-left: 0;
}

.list-disc li::marker, .list-decimal li::marker {
    unicode-bidi: isolate;
}

/* Zoom disabled styles */
#zoom-disabled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.75rem;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    .p-6 {
        padding: 1rem;
    }
}
